package com.qf.pojo;

import java.util.Date;

/**
 * @author Mr.Liu
 * @date 2021/11/25 12:47
 */

public class Product {
    /*`pid` varchar(32) NOT NULL,
  `pname` varchar(50) DEFAULT NULL,
  `market_price` double DEFAULT NULL,
            `shop_price` double DEFAULT NULL,
            `pimage` varchar(200) DEFAULT NULL,
  `pdate` date DEFAULT NULL,
            `is_hot` int DEFAULT NULL,
            `pdesc` varchar(255) DEFAULT NULL,
  `pflag` int DEFAULT NULL,
            `cid` varchar(32) DEFAULT NULL,
    PRIMARY KEY (`pid`),
    KEY `sfk_0001` (`cid`),*/
    private String pid;//编号
    private String pname;//名称
    private Double market_price;//市场价格
    private Double shop_price;//商城价格
    private String pimage;//商品图片
    private Date pdate;//商家日期
    private Integer is_hot;//是否热门:热门--1;不热门--0
    private String pdesc;//商品描述
    private Integer pflag;//是否下架:下架--1;未下架--0
    private String cid;

    public String getPid() {
        return pid;
    }

    public void setPid(String pid) {
        this.pid = pid;
    }

    public String getPname() {
        return pname;
    }

    public void setPname(String pname) {
        this.pname = pname;
    }

    public Double getMarket_price() {
        return market_price;
    }

    public void setMarket_price(Double market_price) {
        this.market_price = market_price;
    }

    public Double getShop_price() {
        return shop_price;
    }

    public void setShop_price(Double shop_price) {
        this.shop_price = shop_price;
    }

    public String getPimage() {
        return pimage;
    }

    public void setPimage(String pimage) {
        this.pimage = pimage;
    }

    public Date getPdate() {
        return pdate;
    }

    public void setPdate(Date pdate) {
        this.pdate = pdate;
    }

    public Integer getIs_hot() {
        return is_hot;
    }

    public void setIs_hot(Integer is_hot) {
        this.is_hot = is_hot;
    }

    public String getPdesc() {
        return pdesc;
    }

    public void setPdesc(String pdesc) {
        this.pdesc = pdesc;
    }

    public Integer getPflag() {
        return pflag;
    }

    public void setPflag(Integer pflag) {
        this.pflag = pflag;
    }

    public String getCid() {
        return cid;
    }

    public void setCid(String cid) {
        this.cid = cid;
    }

    @Override
    public String toString() {
        return "Product{" +
                "pid='" + pid + '\'' +
                ", pname='" + pname + '\'' +
                ", market_price=" + market_price +
                ", shop_price=" + shop_price +
                ", pimage='" + pimage + '\'' +
                ", pdate=" + pdate +
                ", is_hot=" + is_hot +
                ", pdesc='" + pdesc + '\'' +
                ", pflag=" + pflag +
                ", cid='" + cid + '\'' +
                '}';
    }
}
